package com.ischoolbar.programmer.service.home.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ischoolbar.programmer.dao.home.AddressDao;
import com.ischoolbar.programmer.dao.home.CollectDao;
import com.ischoolbar.programmer.entity.home.Address;
import com.ischoolbar.programmer.service.home.AddressService;

@Service
public class AddressServiceImpl implements AddressService{

	@Autowired
	private AddressDao addressDao;
	
	@Override
	public int add(Address address) {
		// TODO Auto-generated method stub
		return addressDao.add(address);
	}

	@Override
	public Address findByAccountId(Long id) {
		// TODO Auto-generated method stub
		return addressDao.findByAccountId(id);
	}

	@Override
	public int delete(String id) {
		// TODO Auto-generated method stub
		return addressDao.delete(id);
	}

	@Override
	public int deleteByAccountId(Long accountId) {
		// TODO Auto-generated method stub
		return addressDao.deleteByAccountId(accountId);
	}

	
	
}
